package com.xk.demo.role.service;

import com.xk.demo.mybatis.entity.PtDutyEntity;
import com.xk.demo.mybatis.entity.PtRoleEntity;
import com.xk.demo.mybatis.flexigrid.PadingRstType;
import com.xk.demo.mybatis.flexigrid.PagingBean;
import com.xk.demo.mybatis.ztree.ZtreeEntity;
import com.xk.demo.role.entity.SearchRoleEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleService {

    PadingRstType<PtRoleEntity> getRoleInfoListByPage(SearchRoleEntity search, PagingBean paging);

    List<ZtreeEntity> getMenuZtreeListByRoleId(String roleUuid);

    void saveMenuByRoleId(String roleUuid, String menuIds);

    void insertRole(PtRoleEntity ptRoleEntity);

    int delRole(String uuid);
}
